package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DeviceCameraMapper;
import com.ruoyi.system.domain.DeviceCamera;
import com.ruoyi.system.service.IDeviceCameraService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-09-10
 */
@Service
public class DeviceCameraServiceImpl implements IDeviceCameraService 
{
    @Autowired
    private DeviceCameraMapper deviceCameraMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param cameraId 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public DeviceCamera selectDeviceCameraById(Long cameraId)
    {
        return deviceCameraMapper.selectDeviceCameraById(cameraId);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param deviceCamera 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<DeviceCamera> selectDeviceCameraList(DeviceCamera deviceCamera)
    {
        return deviceCameraMapper.selectDeviceCameraList(deviceCamera);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param deviceCamera 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertDeviceCamera(DeviceCamera deviceCamera)
    {
        return deviceCameraMapper.insertDeviceCamera(deviceCamera);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param deviceCamera 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateDeviceCamera(DeviceCamera deviceCamera)
    {
        return deviceCameraMapper.updateDeviceCamera(deviceCamera);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param cameraIds 需要删除的【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteDeviceCameraByIds(Long[] cameraIds)
    {
        return deviceCameraMapper.deleteDeviceCameraByIds(cameraIds);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param cameraId 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteDeviceCameraById(Long cameraId)
    {
        return deviceCameraMapper.deleteDeviceCameraById(cameraId);
    }
}
